package com.newtouch.bxzs.business.message.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.newtouch.bxzs.business.message.model.AdvertisementBO;
import com.newtouch.bxzs.business.message.model.AdvertisementVO;
import com.newtouch.bxzs.business.message.model.AnnouncementBO;
import com.newtouch.bxzs.business.message.model.AnnouncementVO;
import com.newtouch.bxzs.common.base.response.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 通知和广告feign接口
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/21 14:00</td>
 * <td>tianshangzhu</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author tianshangzhu
 * @version 1.0.0
 * @since 1.0.0
 */
@Component
@FeignClient("bxzs-message")
public interface AnnouncementAndAdvertisementServiceClient {
    /**
     * 获取公告列表
     * @param announcementVO 参数
     * @return BaseResponse<AnnouncementBO>
     */
    @PostMapping("/announcementController/getAnnouncementList")
    BaseResponse<AnnouncementBO> getAnnouncementList(@RequestBody AnnouncementVO announcementVO);

    /**
     * app首页轮播广告
     * @param advertisementVO 参数
     * @return BaseResponse<AdvertisementBO>
     */
    @PostMapping("/advertisementController/getAdvertisementList")
    BaseResponse<IPage<AdvertisementBO>> getAdvertisementList(@RequestBody AdvertisementVO advertisementVO);

}
